<div id="boxes_wrapper">
<?php foreach($boxes as $box):
    if(isset ($box['style'])) { ?>
<div class="box_wrapper" style="<?php echo $box['style']; ?>">
<?php } else { ?>
<div class="box_wrapper">    
<?php } ?>    
<?php if(isset ($box['supertitle'])) { ?>
<div class="box_supertitle"><?php echo $box['supertitle']; ?></div>    
<?php } ?>
<div class="box_title"><?php echo $box['title']; ?></div>
<?php 
    $view = (isset($box['box_view'])?$box['box_view']:'generic');
    $this->load->view('box/'.$view, $box);
?>
</div>	
<?php endforeach;?>
</div>
